package org.jingouzhui.domain.strategy.service.rule.chain;

import org.jingouzhui.domain.strategy.service.rule.chain.factory.DefaultLogicChainFactory;

/**
* @description: 抽奖责任链接口
* @author: jingouzhui
* @date: 2025/4/29 12:26
*/
public interface ILogicChain extends ILogicChainArmory{

    /**
     * 根据用户id和策略id抽奖
     * @param userId 用户Id
     * @param strategyId 策略Id
     * @return awardId
     */
    public  DefaultLogicChainFactory.StrategyAwardVO logic(String userId, Long strategyId);

    public ILogicChain appendNext(ILogicChain logicChain);

    public ILogicChain next();
}
